package com.spsoft.vatoutinv.enums;

public enum LzfpbzEnum {

    BULE("0","蓝字发票"),

    RED("1","红字发票");



    public final String key;
    public final String value;

    LzfpbzEnum(String key , String value){
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }

    public static boolean isInclude(String key){
        boolean include = false;
        for (LzfpbzEnum e: LzfpbzEnum.values()){
            if(e.getKey().equals(key)){
                include = true;
                break;
            }
        }
        return include;
    }

    public static String getValueByKey(String key){
        String value = "";
        for (LzfpbzEnum e: LzfpbzEnum.values()){
            if(e.getKey().equals(key)){
                value = e.value;
            }
        }
        return value;
    }
}
